package com.offcn.springbootthymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class FirstThymeleafController {

    @GetMapping("/indexPage")
    public String indexPage(Model model){

        model.addAttribute( "message", "kkkkk" );

        System.out.println(
                "sdadfsadfsad"
        );

        return "index";
    }
}
